package georah.carto.geometries
{
	import georah.carto.Extent;
	
	/**
	 * 
	 * @author yuanm
	 */
	public class OGCPoint extends OGCGeometry
	{
		public static const TYPE:String="Point";

		public function OGCPoint(srid_:int=4326, x_:Number=0.0, y_:Number=0.0)
		{
			SRID=srid_;
			x=x_;
			y=y_;
		}

		public var x:Number=0.0;

		public var y:Number=0.0;

		override public function get asText():String
		{
			return "SRID=" + SRID + ";" + OGCPoint.TYPE + "(" + toString() + ")";
		}

		override public function get envelope():Extent
		{
			return null;
		}

		virtual public function toString():String
		{
			return x + " " + y;
		}

	}
}
